<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let str = ' Hello World ';

        // console.log(str.toUpperCase());
        // console.log(str.toLowerCase());

        console.log(str);
        console.log(str.length);


        let newStr = str.trim();
        console.log(newStr);
        console.log(newStr.length);




    </script>
</body>

</html>